<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
    <link rel="dns-prefetch" href="https://fonts.googleapis.com">
    <link rel="dns-prefetch" href="https://fonts.gstatic.com">
    <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="preload" href="{$setting.web_view}/img/1.webp" as="image">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet" media="print" onload="this.media='all'">
    <noscript>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
    </noscript>
    <title>橘喵云 | 宝塔面板</title>
    <meta name="description" content="橘喵云联合定制版宝塔面板，为您提供强大的云服务管理工具，支持一键部署、监控、备份等功能，助您轻松管理云服务，提升工作效率。">
    <meta name="keywords" content="宝塔面板,橘喵云,服务器管理,云服务,一键部署,网站管理,数据库管理">
    <meta property="og:title" content="橘喵云 | 宝塔面板">
    <meta property="og:description" content="橘喵云联合定制版宝塔面板，为您提供强大的云服务管理工具，支持一键部署、监控、备份等功能，助您轻松管理云服务，提升工作效率。">
    <meta property="og:image" content="{$setting.web_view}/img/2.webp">
    <meta property="og:url" content="https://cloud.ogmiao.com/bt.html">
    <meta property="og:type" content="website">

    <!-- Twitter Card metadata -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="橘喵云 | 宝塔面板">
    <meta name="twitter:description" content="橘喵云联合定制版宝塔面板，为您提供强大的云服务管理工具，支持一键部署、监控、备份等功能，助您轻松管理云服务，提升工作效率。">
    <meta name="twitter:image" content="{$setting.web_view}/img/2.webp">
    <style>
        /* 基础样式变量 */
        :root {
            --primary: #f08a5d;
            --primary-dark: #e67e22;
            --primary-light: #fad7a0;
            --secondary: #f9b384;
            --accent: #ffbe76;
            --dark: #2d3436;
            --light: #ffffff;
            --gray: #636e72;
            --gray-light: #f8f8f8;
            --footer-bg: #f5f5f5;
            --footer-text: #555555;
            --footer-title: #333333;
            --success: #26de81;
            --warning: #fed330;
            --danger: #fc5c65;
            --bg-gradient: linear-gradient(135deg, rgba(240, 138, 93, 0.8), rgba(249, 179, 132, 0.8));
            --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        /* 夜间模式样式 */
        :root {
  --dark-bg: #0a0a0a;
  --dark-card-bg: #151515;
  --dark-card-bg-hover: #1a1a1a;
  --dark-text: #d0d0d0;
  --dark-text-secondary: #a0a0a0;
  --dark-border: #333333;
  --dark-hover: #2a2a2a;
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  --dark-primary: #b06a3d; /* 进一步降低亮度的主题色 */
  --dark-primary-light: #c08060; /* 降低亮度的浅主题色 */
  --dark-secondary: #b08060; /* 降低亮度的次要主题色 */
  --dark-accent: #c09050; /* 降低亮度的强调色 */
  --dark-success: #20a060; /* 降低亮度的成功色 */
  --dark-warning: #c0a020; /* 降低亮度的警告色 */
  --dark-danger: #c04040; /* 降低亮度的危险色 */
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", "PingFang SC", "Microsoft YaHei", "微软雅黑", "Hiragino Sans GB", "STHeiti",
            "WenQuanYi Micro Hei", sans-serif;
        }

        body {
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--light);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .dark body {
            background-color: var(--dark-bg);
            color: var(--dark-text);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 主要内容区域样式 */
        .bt-main {
            position: relative;
            padding-bottom: 60px; /* 为移动端底部导航留出空间 */
        }

        /* 英雄区域 - 全宽度设计 */
        .hero-section {
            position: relative;
            width: 100%;
            padding: 100px 0;
            background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('/placeholder.svg?height=800&width=1600');
            background-size: cover;
            background-position: center;
            text-align: center;
            overflow: hidden;
        }

        .dark .hero-section {
            background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), url('/placeholder.svg?height=800&width=1600');
        }

        .hero-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(240, 138, 93, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(240, 138, 93, 0.05) 1px, transparent 1px);
            background-size: 20px 20px;
            z-index: 1;
        }

        .dark .hero-section::before {
            background-image: 
                linear-gradient(rgba(208, 122, 77, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(208, 122, 77, 0.05) 1px, transparent 1px);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            color: var(--primary);
            position: relative;
            display: inline-block;
        }

        .dark .hero-title {
            color: var(--dark-primary);
        }

        .hero-description {
            font-size: 1.2rem;
            color: var(--gray);
            margin-bottom: 2.5rem;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
        }

        .dark .hero-description {
            color: var(--dark-text-secondary);
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .btn-hero {
            display: inline-block;
            padding: 1rem 2.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--bg-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(240, 138, 93, 0.3);
        }

        .dark .btn-primary {
            box-shadow: 0 4px 15px rgba(208, 122, 77, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(240, 138, 93, 0.4);
        }

        .dark .btn-primary:hover {
            box-shadow: 0 8px 25px rgba(208, 122, 77, 0.4);
        }

        /* 导航菜单 - 全宽度设计 */
        .nav-section {
            width: 100%;
            background-color: white;
            padding: 1rem 0;
            position: sticky;
            top: 70px;
            z-index: 90;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .dark .nav-section {
            background-color: var(--dark-card-bg);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .nav-container {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            overflow-x: auto;
            padding: 0.5rem 0;
        }

        .nav-link {
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .dark .nav-link {
            color: var(--dark-text);
        }

        .nav-link:hover, .nav-link.active {
            color: var(--primary);
            background-color: rgba(240, 138, 93, 0.1);
        }

        .dark .nav-link:hover, .dark .nav-link.active {
            background-color: rgba(208, 122, 77, 0.1);
            color: var(--dark-primary);
        }

        /* 内容区域 - 全宽度设计 */
        .content-section {
            width: 100%;
            padding: 6rem 0;
            position: relative;
        }

        .content-section:nth-child(odd) {
            background-color: var(--light);
        }

        .content-section:nth-child(even) {
            background-color: var(--gray-light);
        }

        .dark .content-section:nth-child(odd) {
            background-color: var(--dark-bg);
        }

        .dark .content-section:nth-child(even) {
            background-color: #1a1a1a;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            color: var(--primary);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .dark .section-title h2 {
            color: var(--dark-primary);
        }

        .section-title h2 span {
            color: var(--primary);
        }

        .dark .section-title h2 span {
            color: var(--dark-primary);
        }

        .section-title p {
            font-size: 1.1rem;
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
        }

        .dark .section-title p {
            color: var(--dark-text-secondary);
        }

        /* 功能网格 */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .feature-item {
            background-color: var(--light);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-top: 3px solid var(--primary);
            position: relative;
            overflow: hidden;
        }

        .dark .feature-item {
            background-color: var(--dark-card-bg-hover);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border-top-color: var(--dark-primary);
        }

        .feature-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .dark .feature-item:hover {
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .feature-item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(240, 138, 93, 0.05) 0%, transparent 80%);
            z-index: 0;
        }

        .dark .feature-item::before {
            background: linear-gradient(135deg, rgba(208, 122, 77, 0.05) 0%, transparent 80%);
        }

        .feature-item h3 {
            position: relative;
            z-index: 1;
            color: var(--primary);
            margin-top: 0;
            display: flex;
            align-items: center;
        }

        .dark .feature-item h3 {
            color: var(--dark-primary);
        }

        .feature-item h3::before {
            content: "✓";
            margin-right: 10px;
            color: var(--success);
            font-weight: bold;
        }

        .dark .feature-item h3::before {
            color: var(--dark-success);
        }

        .feature-item p {
            position: relative;
            z-index: 1;
        }

        /* 系统支持网格 */
        .systems-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .system-item {
            background-color: var(--light);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-top: 3px solid var(--primary);
            position: relative;
            overflow: hidden;
        }

        .dark .system-item {
            background-color: var(--dark-card-bg);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border-top-color: var(--dark-primary);
        }

        .system-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .dark .system-item:hover {
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .system-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary);
        }

        .dark .system-icon {
            color: var(--dark-primary);
        }

        .system-name {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
            font-size: 1.1rem;
        }

        .dark .system-name {
            color: var(--dark-text);
        }

        .system-type {
            font-size: 0.8rem;
            color: white;
            background-color: var(--primary);
            padding: 3px 10px;
            border-radius: 20px;
            display: inline-block;
        }

        .system-type.recommended {
            background-color: var(--success);
        }

        .system-type.compatible {
            background-color: var(--warning);
        }

        .dark .system-type.recommended {
            background-color: var(--dark-success);
        }

        .dark .system-type.compatible {
            background-color: var(--dark-warning);
        }

        /* 安装命令样式 */
        .version-section {
            margin-bottom: 30px;
            background-color: var(--light);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary);
        }

        .dark .version-section {
            background-color: var(--dark-card-bg);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border-left-color: var(--dark-primary);
        }

        .version-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .dark .version-section:hover {
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .version-section h3 {
            color: var(--primary);
            border-bottom: 2px solid rgba(240, 138, 93, 0.2);
            padding-bottom: 10px;
            margin-top: 0;
            font-size: 1.4rem;
        }

        .dark .version-section h3 {
            color: var(--dark-primary);
            border-bottom-color: rgba(208, 122, 77, 0.2);
        }

        .install-option {
            margin-bottom: 20px;
        }

        .install-option h4 {
            margin-bottom: 10px;
            color: var(--dark);
            font-size: 1.1rem;
            display: flex;
            align-items: center;
        }

        .dark .install-option h4 {
            color: var(--dark-text);
        }

        .install-option h4::before {
            content: "⚙️";
            margin-right: 10px;
            font-size: 1.2rem;
        }

        /* 修改安装命令区域的样式，解决复制按钮遮挡问题 */
.install-command {
  background-color: #2d2a24; /* 更换为暖色调深色背景，更贴合橘喵云设计 */
  color: var(--light);
  padding: 15px;
  padding-top: 45px; /* 增加顶部内边距，为复制按钮留出空间 */
  border-radius: 8px;
  overflow-x: auto;
  position: relative;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark .install-command {
  background-color: #1e1a16; /* 暗色模式下更深的暖色调背景 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

        .install-command code {
            display: block;
            white-space: pre-wrap;
            word-break: break-all;
            font-family: monospace;
            margin-bottom: 10px;
            line-height: 1.5;
        }

        /* 重新设计复制按钮 */
        .copy-btn {
            position: absolute;
            top: 10px;
            left: 15px; /* 改为左对齐 */
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .copy-btn::before {
            content: "📋";
            font-size: 14px;
        }

        .dark .copy-btn {
            background-color: var(--dark-primary);
        }

        .copy-btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }

        .dark .copy-btn:hover {
            background-color: var(--dark-primary-light);
        }

        /* 添加命令标题样式 */
        .command-title {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }

        .note {
            background-color: rgba(254, 211, 48, 0.1);
            border-left: 4px solid var(--warning);
            padding: 15px;
            margin-top: 20px;
            border-radius: 8px;
            position: relative;
        }

        .dark .note {
            background-color: rgba(222, 179, 32, 0.1);
            border-left-color: var(--dark-warning);
        }

        .note p {
            margin: 5px 0;
            position: relative;
            padding-left: 25px;
        }

        .dark .note p strong {
            color: var(--warning);
        }

        .dark .note p strong {
            color: var(--dark-warning);
        }

        .note p::before {
            content: "⚠️";
            position: absolute;
            left: 0;
            top: 2px;
        }

        /* FAQ样式 */
        .faq-item {
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            padding-bottom: 20px;
        }

        .dark .faq-item {
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-item h3 {
            color: var(--primary);
            font-size: 1.2rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .dark .faq-item h3 {
            color: var(--dark-primary);
        }

        .faq-item h3::before {
            content: "❓";
            margin-right: 10px;
        }

        .faq-item ol, .faq-item ul {
            padding-left: 20px;
            margin-bottom: 15px;
        }

        .faq-item li {
            margin-bottom: 8px;
            color: var(--gray);
        }

        .dark .faq-item li {
            color: var(--dark-text-secondary);
        }

        .faq-item a {
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .dark .faq-item a {
            color: var(--dark-primary);
        }

        .faq-item a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .dark .faq-item a:hover {
            color: var(--dark-primary-light);
        }

        /* 动画效果 */
        @keyframes float {
            0% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
            100% {
                transform: translateY(0);
            }
        }

        .floating-icon {
            position: absolute;
            opacity: 0.6;
            animation: float 6s ease-in-out infinite;
        }

        .icon-1 {
            top: 20%;
            left: 10%;
            font-size: 2rem;
            animation-delay: 0.5s;
        }

        .icon-2 {
            top: 30%;
            right: 15%;
            font-size: 1.8rem;
            animation-delay: 1.5s;
        }

        .icon-3 {
            bottom: 25%;
            left: 20%;
            font-size: 2.2rem;
            animation-delay: 1s;
        }

        .icon-4 {
            bottom: 30%;
            right: 10%;
            font-size: 1.5rem;
            animation-delay: 2s;
        }

        /* 装饰元素 */
        .decoration {
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(240, 138, 93, 0.2), rgba(249, 179, 132, 0.1));
            z-index: 0;
        }

        .dark .decoration {
            background: linear-gradient(135deg, rgba(208, 122, 77, 0.2), rgba(217, 155, 116, 0.1));
        }

        .decoration-1 {
            width: 200px;
            height: 200px;
            top: -50px;
            right: -50px;
        }

        .decoration-2 {
            width: 150px;
            height: 150px;
            bottom: -30px;
            left: -30px;
        }

        /* 响应式调整 */
        @media (max-width: 992px) {
            .hero-section {
                padding: 60px 0;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-description {
                font-size: 1.1rem;
            }

            .section-title h2 {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 40px 0;
            }

            .hero-title {
                font-size: 2rem;
            }

            .hero-description {
                font-size: 1rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
            }

            .btn-hero {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .nav-container {
                gap: 0.8rem;
            }

            .nav-link {
                padding: 0.4rem 0.8rem;
                font-size: 0.9rem;
            }

            .content-section {
                padding: 3rem 0;
            }

            .section-title h2 {
                font-size: 1.8rem;
            }

            .feature-grid {
                grid-template-columns: 1fr;
            }

            .systems-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }

            .install-command code {
                font-size: 0.9rem;
            }
        }

        /* 响应式调整 */
        @media (max-width: 576px) {
            .install-command {
                padding-top: 40px;
            }
            
            .copy-btn {
                font-size: 11px;
                padding: 4px 8px;
            }
            
            .command-title {
                font-size: 11px;
            }
        }

        @media (max-width: 576px) {
            .hero-title {
                font-size: 1.8rem;
            }

            .section-title h2 {
                font-size: 1.6rem;
            }

            .section-title p {
                font-size: 0.95rem;
            }

            .version-section {
                padding: 15px;
            }

            .version-section h3 {
                font-size: 1.2rem;
            }

            .install-option h4 {
                font-size: 1rem;
            }

            .systems-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .system-item {
                padding: 15px 10px;
            }

            .system-icon {
                font-size: 2rem;
                margin-bottom: 10px;
            }

            .system-name {
                font-size: 0.9rem;
                margin-bottom: 5px;
            }

            .system-type {
                font-size: 0.7rem;
                padding: 2px 8px;
            }
        }

        /* 兼容移动端底部导航 */
        @media (max-width: 768px) {
            body {
                padding-bottom: 60px !important;
            }
        }

        /* 自定义移动端底部导航样式 */
        #btMobileNav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: white;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            padding: 0.5rem 0;
            justify-content: space-around;
            overflow-x: auto;
            white-space: nowrap;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .dark #btMobileNav {
            background-color: #1a1a1a;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        #btMobileNav .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--gray);
            font-size: 0.65rem;
            padding: 0.3rem 0.5rem;
            min-width: 60px;
            transition: all 0.3s ease;
        }

        .dark #btMobileNav .mobile-nav-item {
            color: #aaaaaa;
        }

        #btMobileNav .mobile-nav-icon {
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
            transition: all 0.3s ease;
        }

        #btMobileNav .mobile-nav-item.active {
            color: var(--primary);
        }

        .dark #btMobileNav .mobile-nav-item.active {
            color: var(--dark-primary);
        }

        #btMobileNav .mobile-nav-item:hover {
            color: var(--primary);
        }

        .dark #btMobileNav .mobile-nav-item:hover {
            color: var(--dark-primary);
        }

        @media (max-width: 375px) {
            #btMobileNav .mobile-nav-item {
                font-size: 0.6rem;
                min-width: 50px;
            }
            
            #btMobileNav .mobile-nav-icon {
                font-size: 1rem;
            }
        }
    </style>

</style>

<style id="dark-mode-styles">
/* 改进的夜间模式样式将在JavaScript中动态添加 */
</style>

<script>
// 添加改进的夜间模式样式
document.addEventListener("DOMContentLoaded", function() {
  // 检查是否已经有夜间模式样式表
  let darkModeStyle = document.getElementById('dark-mode-styles');
  
  if (darkModeStyle) {
    // 更新样式内容
    darkModeStyle.textContent = `
      /* 改进的夜间模式 - 更深色背景和降低亮度 */
      .dark {
        background-color: var(--dark-bg) !important;
        color: var(--dark-text) !important;
      }

      /* 确保所有section都有正确的背景色 */
      .dark section {
        background-color: var(--dark-bg) !important;
      }

      /* 头部导航样式 */
      .dark header {
        background-color: var(--dark-bg);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
      }

      /* 英雄区域背景 */
      .dark .hero-section {
        background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.9)), url('/placeholder.svg?height=800&width=1600');
      }

      /* 内容区域背景 */
      .dark .content-section:nth-child(odd) {
        background-color: var(--dark-bg) !important;
      }
      .dark .content-section:nth-child(even) {
        background-color: #101010 !important;
      }

      /* 卡片和容器背景 */
      .dark .feature-item,
      .dark .system-item,
      .dark .version-section,
      .dark .install-command,
      .dark .note {
        background-color: var(--dark-card-bg) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
      }

      /* 图片亮度调整 */
      .dark img {
        filter: brightness(0.8) contrast(0.9);
      }

      /* 按钮亮度调整 */
      .dark .btn-primary {
        background-color: var(--dark-primary) !important;
        color: var(--dark-text) !important;
        box-shadow: 0 4px 15px rgba(176, 106, 61, 0.3) !important;
      }
      .dark .btn-primary:hover {
        background-color: #a06030 !important;
        box-shadow: 0 6px 20px rgba(176, 106, 61, 0.4) !important;
      }

      /* 文本亮度调整 */
      .dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
        color: var(--dark-text) !important;
      }
      .dark p, .dark li, .dark span:not(.icon-sun):not(.icon-moon) {
        color: var(--dark-text-secondary) !important;
      }

      /* 导航菜单 */
      .dark .nav-link {
        color: #c0c0c0;
      }
      .dark .nav-link:hover,
      .dark .nav-link.active {
        color: var(--dark-primary);
        background-color: rgba(176, 106, 61, 0.1);
      }

      /* 安装命令区域 */
      .dark .install-command {
        background-color: #000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
      }
      .dark .command-title {
        color: rgba(200, 200, 200, 0.7);
      }
      .dark .copy-btn {
        background-color: var(--dark-primary);
      }
      .dark .copy-btn:hover {
        background-color: var(--dark-primary-light);
      }

      /* 移动端导航 */
      .dark #btMobileNav {
        background-color: var(--dark-bg);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(50, 50, 50, 0.1);
      }

      /* 滚动条样式 */
      .dark ::-webkit-scrollbar-track {
        background: var(--dark-bg);
      }
      .dark ::-webkit-scrollbar-thumb {
        background: #333;
      }

      /* 装饰元素 */
      .dark .decoration {
        background: linear-gradient(135deg, rgba(176, 106, 61, 0.15), rgba(176, 106, 61, 0.05));
      }

      /* 浮动图标 */
      .dark .floating-icon {
        opacity: 0.4;
      }

      /* 滚动进度条 */
      .dark .scroll-progress-bar {
        background: var(--dark-primary);
        box-shadow: 0 2px 5px rgba(176, 106, 61, 0.3);
      }
    `;
  }
});
</script>
</head>
<body>
    {include file="common/header" /}

    <main class="bt-main">
        <!-- 英雄区域 -->
        <section class="hero-section">
            <div class="decoration decoration-1"></div>
            <div class="decoration decoration-2"></div>
            <div class="floating-icon icon-1">🔧</div>
            <div class="floating-icon icon-2">🚀</div>
            <div class="floating-icon icon-3">🔒</div>
            <div class="floating-icon icon-4">⚙️</div>
            
            <div class="hero-content">
                <h1 class="hero-title">宝塔面板 - 橘喵云联合定制版</h1>
                <p class="hero-description">为您提供强大的云服务管理工具，支持一键部署、监控、备份等功能，助您轻松管理云服务，提升工作效率。</p>
                <div class="hero-buttons">
                    <a href="#install" class="btn-hero btn-primary">立即安装</a>
                </div>
            </div>
        </section>

        <!-- 导航菜单 -->
        <section class="nav-section">
            <div class="container">
                <div class="nav-container">
                    <a href="#features" class="nav-link">功能优势</a>
                    <a href="#systems" class="nav-link">系统支持</a>
                    <a href="#install" class="nav-link">安装命令</a>
                    <a href="#faq" class="nav-link">常见问题</a>
                </div>
            </div>
        </section>

        <!-- 功能优势 -->
        <section id="features" class="content-section">
            <div class="container">
                <div class="section-title">
                    <h2>功能<span>优势</span></h2>
                    <p>宝塔Linux面板是提升运维效率的服务器管理软件，支持一键LAMP/LNMP/集群/监控/网站/FTP/数据库/JAVA等100多项服务器管理功能。经过200多个版本的迭代，功能全，少出错且足够安全，已获得全球百万用户认可安装。</p>
                </div>
                
                <div class="feature-grid">
                    <div class="feature-item">
                        <h3>一键安装</h3>
                        <p>一键安装LNMP、LAMP、LNMP一键包、宝塔面板等环境</p>
                    </div>
                    <div class="feature-item">
                        <h3>一键管理</h3>
                        <p>一键管理网站、数据库、FTP、文件、SSL、计划任务等</p>
                    </div>
                    <div class="feature-item">
                        <h3>一键部署</h3>
                        <p>一键部署Discuz、WordPress、Dede等PHP开源程序</p>
                    </div>
                    <div class="feature-item">
                        <h3>一键升级</h3>
                        <p>一键升级Linux内核、LNMP、MySQL、PHP、Redis、Memcached等</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- 系统支持 -->
        <section id="systems" class="content-section">
            <div class="container">
                <div class="section-title">
                    <h2>系统<span>支持</span></h2>
                    <p>兼容CentOS、Ubuntu、Debian、Raspbian、Fedora、OpenSUSE、ArchLinux、Mint、Deepin等多种Linux系统</p>
                </div>
                
                <div class="systems-grid">
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">Debian-12</h3>
                        <span class="system-type recommended">推荐</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">Ubuntu-22</h3>
                        <span class="system-type recommended">推荐</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">☁️</div>
                        <h3 class="system-name">OpenCloud-9</h3>
                        <span class="system-type recommended">推荐</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">☁️</div>
                        <h3 class="system-name">Alibaba-Cloud-3</h3>
                        <span class="system-type recommended">推荐</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">Debian-10+</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">Ubuntu-18+</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">Centos/Alma/Rocky9</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">OpenEuler20+</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">统信20</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                    <div class="system-item">
                        <div class="system-icon">🐧</div>
                        <h3 class="system-name">麒麟V10SP3</h3>
                        <span class="system-type compatible">兼容</span>
                    </div>
                </div>
            </div>
        </section>

        <!-- 安装命令 -->
        <section id="install" class="content-section">
            <div class="container">
                <div class="section-title">
                    <h2>安装<span>命令</span></h2>
                    <p>根据您的需求和系统环境，选择合适的安装命令</p>
                </div>
                
                <div class="version-section">
                    <h3>正式版：9.5.0</h3>
                    <p>推荐安装，已经公测且稳定的版本，每月会更新新功能，推荐使用Debian12系统</p>
                    
                    <div class="install-option">
                        <h4>通用安装脚本（推荐）</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>Centos/OpenCloud/Alibaba</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>url=https://download.bt.cn/install/install_panel.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_panel.sh $url;fi;bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>Debian</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh && bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                </div>
                
                <div class="version-section">
                    <h3>稳定版：9.0.0</h3>
                    <p>推荐公司、企事业单位及生产环境使用，特别注重安全和稳定性，只修BUG，不加新功能</p>
                    
                    <div class="install-option">
                        <h4>通用安装脚本（推荐）</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>Centos/OpenCloud/Alibaba</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>Debian</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>Ubuntu/Deepin</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>wget -O install.sh https://download.bt.cn/install/install_lts.sh && sudo bash install.sh ed8484bec</code>
                        </div>
                    </div>
                </div>
                
                <div class="version-section">
                    <h3>宝塔Linux面板企业版：9.5.0</h3>
                    <p>温馨提示：宝塔Linux面板企业版为付费版本，绑账号可14天试用，期满则需续费企业版。且安装后无法切换免费版/专业版。</p>
                    
                    <div class="install-option">
                        <h4>通用安装脚本（推荐）</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_ltd.sh;else wget -O install_ltd.sh https://download.bt.cn/install/install_ltd.sh;fi;bash install_ltd.sh ed8484bec</code>
                        </div>
                    </div>
                </div>
                
                <div class="note">
                    <p><strong>注意：</strong>请使用root用户执行安装命令。安装过程大约需要2分钟。</p>
                    <p><strong>提示：</strong>如果遇到下载失败的情况，可能是网络问题，请尝试更换网络环境或联系客服获取备用安装方式。</p>
                </div>
            </div>
        </section>

        <!-- 常见问题 -->
        <section id="faq" class="content-section">
            <div class="container">
                <div class="section-title">
                    <h2>常见<span>问题</span></h2>
                    <p>安装有问题？加我解决</p>
                </div>
                
                <div class="faq-item">
                    <h3>面板安装流程？</h3>
                    <ol>
                        <li>使用ssh远程终端工具，如堡塔多机管理-终端连接至Linux服务器</li>
                        <li>使用root账户执行进行安装（大约2分钟左右）</li>
                        <li>安装完成根据获取的账户密码进行访问宝塔面板</li>
                    </ol>
                </div>

                <div class="faq-item">
                    <h3>系统和环境的兼容性？</h3>
                    <p><strong>推荐：</strong>Debian-12 或 Ubuntu-22 或 OpenCloud-9(腾讯云)，Alibaba-Cloud-3（阿里云）</p>
                    <p><strong>兼容：</strong>Debian-10+ Uubuntu-18+ Centos/Alma/Rocky9 OpenEuler20+ 统信20 麒麟V10SP3（龙芯/x86/鲲鹏）</p>
                    <p><strong>环境兼容详细说明:</strong> install 主流系统环境兼容列表 、 install 国产系统环境兼容列表</p>
                </div>

                <div class="faq-item">
                    <h3>面板安装后无法访问，如何排查？</h3>
                    <ol>
                        <li>检查服务器安全组是否放行面板端口,面板端口查看命令：cat /www/server/panel/data/port.pl</li>
                        <li>检查面板是否运行正常，尝试执行命令重启宝塔：bt restart如无返回报错说明宝塔正常</li>
                        <li>执行bt default获取最新面板登录地址尝试访问</li>
                        <li>如有出现报错相关信息，请联系客服</li>
                    </ol>
                </div>

                <div class="faq-item">
                    <h3>如何查看默认账号密码？</h3>
                    <ol>
                        <li>执行bt default获取默认账户密码</li>
                        <li>执行bt 5 重置宝塔面板密码</li>
                        <li>如果出现仍无法登录的情况，请联系客服</li>
                    </ol>
                </div>

                <div class="faq-item">
                    <h3>离线版如何安装？</h3>
                    <p>点击<a href="https://www.bt.cn/new/product_offline.html" target="_blank">跳转至离线版页面</a></p>
                </div>

                <div class="faq-item">
                    <h3>国产龙芯架构如何安装？</h3>
                    <p>可执行这条命令进行安装：</p>
                    <div class="install-command">
                        <span class="command-title">安装命令</span>
                        <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                        <code>wget -O install_panel.sh https://download.bt.cn/install/0/loongarch64/loongarch64_install_panel.sh && bash install_panel.sh ed8484bec</code>
                    </div>
                </div>

                <div class="faq-item">
                    <h3>麒麟桌面系统安装失败？</h3>
                    <p>请执行以下命令，关闭机器软件保护后（可在宝塔面板配置好后重新开启） 重新安装</p>
                    <div class="install-command">
                        <span class="command-title">安装命令</span>
                        <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                        <code>sudo setstatus softmode -p</code>
                    </div>
                </div>

                <div class="faq-item">
                    <h3>面板提示不是安全连接或私密连接</h3>
                    <p>因早期默认未开启https访问所以没有相关的风险提醒，现面板默认已开启https加密访问、提升安全性。由于采用的是服务器内部本身签发证书，不被公网浏览器信任请参考以下步骤进行加密访问面板</p>
                    <p><strong>推荐:</strong>安装本地根证书，解决问题："Win系统根证书下载"，"Mac系统根证书下载。"</p>
                </div>

                <div class="faq-item">
                    <h3>网络连接失败</h3>
                    <p>如提醒网络连接失败，可选择切换以下其他地址，重新复制命令进行安装</p>
                    
                    <div class="install-option">
                        <h4>电信线路</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>if [ -f /usr/bin/curl ];then curl -sSO https://cmcc1-node.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://cmcc1-node.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>香港线路</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>if [ -f /usr/bin/curl ];then curl -sSO https://hk1-node.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://hk1-node.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                    
                    <div class="install-option">
                        <h4>欧美线路</h4>
                        <div class="install-command">
                            <span class="command-title">安装命令</span>
                            <button class="copy-btn" onclick="copyToClipboard(this)">复制命令</button>
                            <code>if [ -f /usr/bin/curl ];then curl -sSO https://cf1-node.aapanel.com/install/install_panel.sh;else wget -O install_panel.sh https://cf1-node.aapanel.com/install/install_panel.sh;fi;bash install_panel.sh ed8484bec</code>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- 底部分割线 -->
    <div style="width: 100%; height: 4px; background: var(--bg-gradient); margin-bottom: 0;"></div>

    <!-- 自定义移动端底部导航 -->
    <nav class="mobile-nav" id="btMobileNav" style="display: none;">
        <a href="#features" class="mobile-nav-item">
            <div class="mobile-nav-icon">✨</div>
            <span>功能优势</span>
        </a>
        <a href="#systems" class="mobile-nav-item">
            <div class="mobile-nav-icon">🐧</div>
            <span>系统支持</span>
        </a>
        <a href="#install" class="mobile-nav-item">
            <div class="mobile-nav-icon">⚙️</div>
            <span>安装命令</span>
        </a>
        <a href="#faq" class="mobile-nav-item">
            <div class="mobile-nav-icon">❓</div>
            <span>常见问题</span>
        </a>
    </nav>

    {include file="common/footer" /}

    <script>
        // 修改复制到剪贴板的函数，解决图标重复问题
function copyToClipboard(button) {
    const commandElement = button.nextElementSibling;
    const textArea = document.createElement('textarea');
    textArea.value = commandElement.textContent;
    document.body.appendChild(textArea);
    textArea.select();
    document.execCommand('copy');
    document.body.removeChild(textArea);
    
    // 保存原始文本（不包含伪元素）
    const originalText = button.textContent;
    
    // 更改按钮文本为"已复制"
    button.textContent = '复制成功!';
    button.style.backgroundColor = '#26de81';
    
    // 2秒后恢复按钮文本
    setTimeout(() => {
        button.textContent = originalText;
        button.style.backgroundColor = '';
    }, 2000);
}

        // 导航菜单激活状态
        document.addEventListener("DOMContentLoaded", function() {
            const sections = document.querySelectorAll(".content-section");
            const navLinks = document.querySelectorAll(".nav-link");

            // 滚动监听
            window.addEventListener("scroll", function() {
                let current = "";
                
                sections.forEach(section => {
                    const sectionTop = section.offsetTop;
                    const sectionHeight = section.clientHeight;
                    if (pageYOffset >= (sectionTop - 200)) {
                        current = section.getAttribute("id");
                    }
                });
                
                navLinks.forEach(link => {
                    link.classList.remove("active");
                    if (link.getAttribute("href").substring(1) === current) {
                        link.classList.add("active");
                    }
                });
            });

            // 平滑滚动
            navLinks.forEach(link => {
                link.addEventListener("click", function(e) {
                    e.preventDefault();
                    
                    const targetId = this.getAttribute("href").substring(1);
                    const targetElement = document.getElementById(targetId);
                    
                    window.scrollTo({
                        top: targetElement.offsetTop - 120,
                        behavior: "smooth"
                    });
                });
            });
        });

        // 自定义移动端底部导航
        document.addEventListener("DOMContentLoaded", function() {
            // 检查是否是移动设备
            if (window.innerWidth <= 768) {
                // 隐藏默认的移动端导航
                const defaultMobileNav = document.querySelector(".mobile-nav:not(#btMobileNav)");
                if (defaultMobileNav) {
                    defaultMobileNav.style.display = "none";
                }
                
                // 显示自定义的移动端导航
                const btMobileNav = document.getElementById("btMobileNav");
                if (btMobileNav) {
                    btMobileNav.style.display = "flex";
                }
                
                // 为自定义导航添加点击事件
                const mobileNavItems = document.querySelectorAll("#btMobileNav .mobile-nav-item");
                mobileNavItems.forEach(item => {
                    item.addEventListener("click", function(e) {
                        e.preventDefault();
                        
                        // 移除所有项的活跃状态
                        mobileNavItems.forEach(navItem => {
                            navItem.classList.remove("active");
                        });
                        
                        // 添加当前项的活跃状态
                        this.classList.add("active");
                        
                        // 滚动到目标位置
                        const targetId = this.getAttribute("href").substring(1);
                        const targetElement = document.getElementById(targetId);
                        
                        if (targetElement) {
                            window.scrollTo({
                                top: targetElement.offsetTop - 100,
                                behavior: "smooth"
                            });
                        }
                    });
                });
                
                // 监听滚动事件，更新活跃状态
                window.addEventListener("scroll", function() {
                    const sections = document.querySelectorAll(".content-section");
                    let current = "";
                    
                    sections.forEach(section => {
                        const sectionTop = section.offsetTop;
                        if (pageYOffset >= (sectionTop - 200)) {
                            current = section.getAttribute("id");
                        }
                    });
                    
                    mobileNavItems.forEach(item => {
                        item.classList.remove("active");
                        if (item.getAttribute("href").substring(1) === current) {
                            item.classList.add("active");
                        }
                    });
                });
            }
        });
    </script>
</body>
</html>

